home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / libpng / README < prev    next >
Encoding:
Text File  |  1997-05-16  |  7.7 KB  |  167 lines

  1. README for libpng 0.96
  2.  
  3. This is the sixth (and hopefully last) beta release of libpng 1.0.
  4. The changes from libpng-0.90 include bug fixes, a C++ wrapper for
  5. png.h, some additions to the API, as well as internal changes to
  6. the library.  See "CHANGES" for a detailed list of differences.
  7.  
  8. ****
  9. Note that some of the changes to the png_info structure render this
  10. version of the library binary incompatible with libpng-0.89 or
  11. earlier versions if you are using a shared library.  The type of the
  12. "filler" parameter for png_set_filler() has changed from png_byte to
  13. png_uint_32, which will affect shared-library applications which use
  14. this function.
  15.  
  16. To avoid problems with changes to the internals of png_info_struct,
  17. new APIs have been made available in 0.95 to avoid direct application
  18. access to info_ptr.  These functions are the png_set_<chunk> and
  19. png_get_<chunk> functions.  These functions should be used when
  20. accessing/storing the info_struct data, rather than manipulating it
  21. directly, to avoid such problems in the future.
  22. ****
  23.  
  24. Additions since 0.90 include the ability to compile libpng as a
  25. Windows DLL, and new APIs for accessing data in the info struct.
  26. Experimental functions include the ability to set weighting and cost
  27. factors for row filter selection, direct reads of integers from buffers
  28. on big-endian processors that support misaligned data access, faster
  29. methods of doing alpha composition, and more accurate 16->8 bit color
  30. conversion.
  31.  
  32. The additions since 0.89 include the ability to read from a PNG stream
  33. which has had some (or all) of the signature bytes read by the calling
  34. application.  This also allows the reading of embedded PNG streams that
  35. do not have the PNG file signature.  As well, it is now possible to set
  36. the library action on the detection of chunk CRC errors.  It is possible
  37. to set different actions based on whether the CRC error occurred in a
  38. critical or an ancillary chunk.
  39.  
  40. The changes made to the library, and bugs fixed are based on discussions
  41. on the PNG implementation mailing list <png-implement@dworking.wustl.edu>
  42. and not on material submitted to Guy.
  43.  
  44. For a detailed description on using libpng, read libpng.txt.  For
  45. examples of libpng in a program, see example.c and pngtest.c.  For usage
  46. information and restrictions (what little they are) on libpng, see
  47. png.h.  For a description on using zlib (the compression library used by
  48. libpng) and zlib's restrictions, see zlib.h
  49.  
  50. I have included a general makefile, as well as several machine and
  51. compiler specific ones, but you may have to modify one for your own needs.
  52.  
  53. You should use zlib 1.0.4 or later to run this, but it MAY work with
  54. versions as old as zlib 0.95.  Even so, there are bugs in older zlib
  55. versions which can cause the output of invalid compression streams for
  56. some images.  You will definitely need zlib 1.0.4 or later if you are
  57. taking advantage of the MS-DOS "far" structure allocation for the small
  58. and medium memory models.  You should also note that zlib is a
  59. compression library that is useful for more things than just PNG files.
  60. You can use zlib as a drop-in replacement for fread() and fwrite() if
  61. you are so inclined.
  62.  
  63. zlib should be available at the same place that libpng is.
  64. If not, it should be at ftp.uu.net in /graphics/png
  65. Eventually, it will be at ftp.uu.net in /pub/archiving/zip/zlib
  66.  
  67. You may also want a copy of the PNG specification.  It is available
  68. as an Internet Draft, and RFC, and a W3C Recommendation.  Failing
  69. these resources you can try ftp.uu.net in the /graphics/png directory.
  70.  
  71. This code is currently being archived at ftp.uu.net in the
  72. /graphics/png directory, and on CompuServe, Lib 20 (PNG SUPPORT)
  73. at GO GRAPHSUP.  If you can't find it in any of those places,
  74. e-mail me, and I'll help you find it.
  75.  
  76. If you have any code changes, requests, problems, etc., please e-mail
  77. them to me.  Also, I'd appreciate any make files or project files,
  78. and any modifications you needed to make to get libpng to compile,
  79. along with a #define variable to tell what compiler/system you are on.
  80. If you needed to add transformations to libpng, or wish libpng would
  81. provide the image in a different way, drop me a note (and code, if
  82. possible), so I can consider supporting the transformation.
  83. Finally, if you get any warning messages when compiling libpng
  84. (note: not zlib), and they are easy to fix, I'd appreciate the
  85. fix.  Please mention "libpng" somewhere in the subject line.  Thanks.
  86.  
  87. This release was created and will be supported by myself (of course
  88. based in a large way on Guy's earlier work), and the PNG group.
  89.  
  90. adilger@enel.ucalgary.ca
  91. png-implement@dworkin.wustl.edu
  92.  
  93. You can reach Guy, the original libpng author, at (internet preferred):
  94.  
  95. internet: schalnat@group42.com
  96. CompuServe: 75501,1625
  97.  
  98. Please do not send general questions about PNG.  Send them to
  99. the address in the specification.  At the same time, please do
  100. not send libpng questions to that address, send them to me.  I'll
  101. get them in the end anyway.  If you have a question about something
  102. in the PNG specification that is related to using libpng, send it
  103. to me.  Send me any questions that start with "I was using libpng,
  104. and ...".  If in doubt, send questions to me.  I'll bounce them
  105. to others, if necessary.
  106.  
  107. Please do not send suggestions on how to change PNG.  We have
  108. been discussing PNG for a couple years now, and it is official and
  109. finished.  If you have suggestions for libpng, however, I'll
  110. gladly listen.  Even if your suggestion is not used for version
  111. 1.0, it may be used later.
  112.  
  113. Files in this distribution:
  114.  
  115.       CHANGES       =>  Description of changes between libpng versions
  116.       README        =>  This file
  117.       TODO          =>  Things not implemented in the current library
  118.       ansi2knr.c    =>  Converts files to K&R style function declarations
  119.       build.bat     =>  MS-DOS batch file for Borland compiler
  120.       descrip.mms   =>  VMS project file
  121.       example.c     =>  Example code for using libpng functions
  122.       libpng.txt    =>  Description of libpng and its functions
  123.       makefile      =>  Default Unixish makefile
  124.       makefile.aco  =>  ACORN makefile
  125.       makefile.ama  =>  Amiga makefile
  126.       makefile.atr  =>  Atari makefile
  127.       makefile.bor  =>  Borland makefile
  128.       makefile.dj2  =>  DJGPP 2 makefile
  129.       makefile.elf  =>  Unix ELF makefile
  130.       makefile.knr  =>  Makefile which calls ansi2knr to convert files
  131.       makefile.mip  =>  MIPS makefile
  132.       makefile.msc  =>  Microsoft C makefile
  133.       makefile.std  =>  Standard Unix makefile
  134.       makefile.tc   =>  Turbo C makefile
  135.       makevms.com   =>  VMS make program
  136.       png.c         =>  Basic interface functions common to library
  137.       png.h         =>  Library function and interface declarations
  138.       pngconf.h     =>  System specific library configuration
  139.       pngerror.c    =>  Error/warning message I/O functions
  140.       pngmem.c      =>  Memory handling functions
  141.       pngpread.c    =>  Progressive reading functions
  142.       pngread.c     =>  Read data/helper high-level functions
  143.       pngrio.c      =>  Lowest-level data read I/O functions
  144.       pngrtran.c    =>  Read data transformation functions
  145.       pngrutil.c    =>  Read data utility functions
  146.       pngset.c      =>  Functions for storing data into the info_struct
  147.       pngtest.c     =>  Library test program
  148.       pngtest.png   =>  Library test sample image
  149.       pngtrans.c    =>  Common data transformation functions
  150.       pngwio.c      =>  Lowest-level write I/O functions
  151.       pngwrite.c    =>  High-level write functions
  152.       pngwtran.c    =>  Write data transformations
  153.       pngwutil.c    =>  Write utility functions
  154.  
  155. Good luck, and happy coding.
  156.  
  157. -Andreas Eric Dilger
  158.  Internet: adilger@enel.ucalgary.ca
  159.  Web: http://www-mddsp.enel.ucalgary.ca/People/adilger/
  160.  
  161. -Guy Eric Schalnat
  162.  Group 42, Inc.
  163.  Internet: schalnat@group42.com
  164.  CompuServe: 75501,1625
  165.  Web: http://www.group42.com/
  166.  
  167.